Repository navigation
workflow: report a stage that fails under BestEffort - #920
Merged
Merged
Conversation
A stage in a BestEffort batch can fail without failing the review, and the engine records it as if it had succeeded. Since commit a1065ed ("ui: implement frontend for linux kernel bugs") the Linux analysis stages run that way, so a review that loses one still prints "Review complete", exits as a complete review would, and leaves no trace of the stage in its JSON. Keep the error on the stage's run record, show it in the stage's review_map entry, and list the failed stages under failed_stages in the review output. sashiko review then names each failed stage and, as for a failed patch, prints "Review incomplete" and exits 3. Its --agent status becomes "incomplete". Fixes: a1065ed ("ui: implement frontend for linux kernel bugs") Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev>
Sashiko review✓ No issues found across 1 commit. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A stage in a BestEffort batch can fail without failing the review, and the engine records it as if it had succeeded. Since a1065ed the Linux analysis stages run that way. A local review whose execution-flow stage failed on a truncated model reply printed "Review complete", exited 1 with the other stages' findings, and its JSON held no trace of the failed stage.
This keeps the error on the stage's run record, shows it in the stage's
review_mapentry, and lists the failed stages underfailed_stagesin the review output.sashiko reviewthen names each failed stage and, as for a failed patch, prints "Review incomplete" and exits 3. Its--agentstatus becomesincomplete. The daemon's handling is unchanged, since it keys its retries on a top-levelerror, which a stage whose failure the review survives doesn't set.